fix sample code to do with color-rs. Renamed HSV to Hsv and RGB to Rgb so that it...
authorjakescott <jake.net@gmail.com>
Tue, 9 Sep 2014 04:30:25 +0000 (16:30 +1200)
committerjakescott <jake.net@gmail.com>
Tue, 9 Sep 2014 04:30:25 +0000 (16:30 +1200)
src/doc/source/guide.md

index 3fa8edcc831caa44e95efcad19723961c3a62ec6..c826d0194adb7a28c21e2b95cb71734bfccf1c9e 100644 (file)
@@ -141,11 +141,11 @@ Now, you can pull in that library using `extern crate` in
 ```rs
 extern crate color;
 
-use color::{RGB, ToHSV};
+use color::{Rgb, ToHsv};
 
 fn main() {
     println!("Converting RGB to HSV!");
-    let red = RGB::new(255u8, 0, 0);
+    let red = Rgb::new(255u8, 0, 0);
     println!("HSV: {}", red.to_hsv::<f32>());
 }
 ```